<?php include_once 'include/header.php'; ?>
<?php include_once 'eventcontroller.php'; ?>
<div id="content">
    <?php include_once 'include/leftsidebar.php' ?>
    <div id="cmiddle">
        <div id="content-middle">           
            <div style="margin-top:20px">
                <div  style="line-height: 36px;height:36px;border-bottom:1px solid #ccc;margin-top:30px;background: url('Images/icon/sukien.png') no-repeat 5px center">
                    <b style="font-size: 1.5em;padding-left:30px">Sự kiện lớp 52PM1</b>
                </div> 
            </div>      
            <?php if(!empty($list_sukien)){ ?>
            <?php foreach ($list_sukien as $s) { ?>
            <div style="margin:10px;border:1px solid #ccc;padding: 5px;">
                <img src="data/event/<?php echo $s["image"] ?>"/>
                <b style="color:#0089FE">Tên sự kiện: <a class="link" href="chitietvieclam.php?id=<?php echo $s[0] ?>"><?php echo $s["tensukien"] ?></a></b>
                <div style="padding:5px;margin:2px;background: #e7e7e7">
                    <div style="float:left;background:url('Images/icon/cal_job.png') no-repeat 4px center">
                        <?php $date = date("d/m/Y H:i:s",  strtotime("{$s["ngaylapsukien"]}")) ?>
                        <span style="padding-left:25px;font-style: italic"><?php echo $date ?></span>
                    </div>
                    <div style="float:left;background:url('Images/icon/user_job.png') no-repeat 4px center">                        
                        <span style="padding-left:25px;font-style: italic"><?php echo $s["fullname"] ?></span>
                    </div>
                    <div style="clear: both"></div>                    
                </div>
                <div style="padding:5px;width:450px;word-wrap:break-word;">
                    <?php echo $s["noidung"] ?>
                </div>
            </div>            
            <?php } ?>   
            <?php } ?>
        </div>
    </div>
    <?php include_once 'include/rightsidebar.php'; ?>
</div>
<script type="text/javascript">   
    function saveAct(){                 
            $("#job-form").submit();                                                        
    }
    $(function(){
        $("#ngaydang").datetimepicker({
            showSecond: true,
            timeFormat: 'hh:mm:ss'
        });
    })
</script>

<?php include_once 'include/footer.php' ?>